import Layout from '@/layout'

export default {
  path: '/employees',
  component: Layout,
  children: [
    {
      path: '', // 如果子组件path为空,默认自动匹配
      name: 'employees',
      component: () => import('@/views/employees/employees.vue'),
      meta: { title: '员工管理', icon: 'people' }
    },
    {
      // path: '/detail', // 如果子组件path为空,默认自动匹配
      path: '/detail/:id', // 这里的:id相当于形参 什么名字都可以但是别忘记加 :号
      name: 'detail',
      component: () => import('@/views/employees/detail.vue'),
      hidden: true // 设置是否在左侧菜单显示
    }
  ]
}
